// components/switch/switch.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title: {
      type: String
    },
    latest: {
      type: Boolean
    },
    first: {
      type: Boolean
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    leftSrc_un: './image/prev.png',
    rightSrc_un: './image/next.png',
    leftSrc: './image/prev_un.png',
    rightSrc: './image/next_un.png'
  },
  
  /**
   * 组件的方法列表
   */
  methods: {
    handlePrev() {
      // console.log(this.data.classic)
      this.triggerEvent('prev', {prevBtn:this.data.prev_btn}, {})
    },
    handleNext() {
      // console.log(this.data.classic)
      this.triggerEvent('next', { nextBtn: this.data.next_btn}, {})
    },
  }
})
